home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / talarm.txt < prev   
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Talarm(2)                 Oct. 1, 1991                  Talarm(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Talarm - schedule an alarm to occur
  7.  
  8. SYNOPSIS
  9.      LONG Talarm( LONG time );
  10.  
  11. DESCRIPTION
  12.      If time is greater than 0, schedule a SIGALRM signal  to  be
  13.      delivered  to  the  process that many seconds from now. Note
  14.      that unless a handler for SIGALRM has  been  established  by
  15.      means of the Psignal function, then the signal will kill the
  16.      process.
  17.  
  18.      If time == 0, then any previously scheduled  alarm  is  can-
  19.      celled.
  20.  
  21.      If time is negative, then no change is made to  what  alarms
  22.      are  scheduled;  in  this case, only the returned value (the
  23.      number of seconds left before any alarm) is of interest.
  24.  
  25. RETURNS
  26.      If an alarm had been scheduled before this call  to  Talarm,
  27.      return the number of seconds remaining until that previously
  28.      scheduled alarm.
  29.  
  30.      Otherwise, return 0.
  31.  
  32. SEE ALSO
  33.      Pause(2), Psignal(2)
  34.  
  35. BUGS
  36.      Internal calculations are done in milliseconds, not seconds,
  37.      so the returned value is not exactly accurate.
  38.  
  39.      For the same reason, setting an alarm more  than  2  million
  40.      seconds or so into the future will not work correctly.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.